package model

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ PersonalityModel = (*customPersonalityModel)(nil)

type (
	// PersonalityModel is an interface to be customized, add more methods here,
	// and implement the added methods in customPersonalityModel.
	PersonalityModel interface {
		personalityModel
	}

	customPersonalityModel struct {
		*defaultPersonalityModel
	}
)

// NewPersonalityModel returns a model for the database table.
func NewPersonalityModel(conn sqlx.SqlConn) PersonalityModel {
	return &customPersonalityModel{
		defaultPersonalityModel: newPersonalityModel(conn),
	}
}
